﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Contrib.MediaGarden.Formats;

namespace Contrib.MediaGarden.ImageMedia.Formats
{
    /// <summary>
    /// TODO: This is distinctly different to other image formats in that it's vector; should be a different media stereotype perhaps? Also SVG can contain animation so it's some
    /// kind of weird hybrid type...
    /// TODO: Sadly information on svg is a bit lacking, theres a HTML5 svg tag but it doesn't seem to have a src attribute...
    /// </summary>
    public class SvgFormat : MimeMediaFormat
    {
        public override string FormatName
        {
            get { return "Svg"; }
        }

        public override string FormatDisplayName
        {
            get { return "Scalable Vector Graphic"; }
        }

        public override string MediaStereotype
        {
            get { return "Image"; }
        }

        public override IEnumerable<string> FileExtensions()
        {
            yield return "svg";
            yield return "svgz";
        }

        public override IEnumerable<string> MimeTypes()
        {
            yield return "image/svg+xml";
        }
    }
}